package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Xiaoxing Yu
 * @date 1/29/21 3:57 PM
 **/
@Data
@TableName(value = "sm_member_order_app")
public class MemberOrderApp {

	/** 主键 雪花算法生成全局唯一订单编号*/
	@TableId(value = "order_no", type = IdType.INPUT)
	private Long orderNo;
	/** 会员ID */
	@TableField(value = "member_id")
	private String memberId;
	/** 快乐贝 */
	@TableField(value = "gold")
	private Integer gold;
	/** 0 消费  1 充值 */
	@TableField(value = "type")
	private String type;
	/** 创建时间 */
	@TableField(value = "create_time")
	private LocalDateTime createTime;
	/** 备注 */
	@TableField(value = "comment")
	private String comment;
	/** 订单交易状态 0 交易失败  1 交易成功 2 扫码获得 3-交易中 */
	@TableField(value = "status")
	private String status;
	/** 上音社扫码用户手机号 */
	private Integer userPhone;
}
